package org.springblade.application.feign;

import lombok.AllArgsConstructor;
import org.springblade.application.service.AppService;
import org.springblade.applicationapi.entity.App;
import org.springblade.applicationapi.feign.IApplicationClient;
import org.springblade.core.tenant.annotation.NonDS;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: ApplicationClient <br>
 * @date: 2022/4/24 16:20 <br>
 * @author: yzpang <br>
 * @version: 1.0 <br>
 */
@NonDS
@RestController
@AllArgsConstructor
public class ApplicationClient implements IApplicationClient {
	private AppService appService;

	@Override
	@PostMapping(APP_LIST)
	public R<List<App>> appList() {
		return R.data(appService.getAppAll());
	}
}
